const mongoose = require('mongoose');

mongoose.connect('mongodb://toilet:BHdHRadad6i3XiGm@43.136.32.174:27017/toilet')

const conn=mongoose.connection

conn.on('open',()=>{
    console.log('连接成功');
})

conn.on('error',(err)=>{
    console.log('连接失败',err);
})

module.exports=mongoose